function intersect(c1, c2)
{
  var d = Math.sqrt((c2.y-c1.y)*(c2.y-c1.y) + (c2.x-c1.x)*(c2.x-c1.x));
  return (c1.r + c2.r) >= d; 
}

var circles = [{x:10, y:10, r:50}, {x:60, y:40, r:30}, {x:100, y:100, r:10}];

print(intersect(circles[0], circles[1]));
print(intersect(circles[0], circles[2]));
print(intersect(circles[1], circles[2]));